import { Alova } from '@/utils/http/alova/index';

//获取table
export function getActivity(params: any) {
  return Alova.Post('/admin/activity', params);
}

export function putActivity(params: any) {
  return Alova.Put('/admin/activity', params);
}

export function patchActivity(params: any) {
  return Alova.Patch('/admin/activity', params);
}

export function getActivityInfo(id: number) {
  return Alova.Get('/admin/activity/' + id);
}

export function deleteActivity(id: number) {
  return Alova.Delete('/admin/activity/' + id);
}
